
/*$(document).ready(function(){
	  $("button.tabElement").click(function(){
		$("#contents").hide(); 
		var url = $(this).val();
		$("#contents").load(url,"",function(){
			$("#contents").fadeIn("normal");
		});
	  });
	});
*/
//returning result
function submitPost(form, callbackFunction){
	var inputParameters = $(form).serialize();
	$.ajax({
		  type: 'POST',
		  url: form.action,
		  data: inputParameters,
		  success: function(jsonString){
				var obj = jQuery.parseJSON(jsonString);
				callbackFunction(obj);},
		  datatype: 'json'
		});
	
}


/*
function goLite(btn)
{
	btn.style.color = "#000000";
	btn.style.backgroundColor = "#FFFFFF";
   	btn.style.borderTopStyle = "solid";
  	btn.style.borderLeftStyle = "solid";
   	btn.style.borderRightStyle = "solid";
   	btn.style.borderTopColor = "#000000";
   	btn.style.borderLeftColor = "#000000";
   	btn.style.borderRightColor = "#000000";
}

function goDim(btn)
{
   	btn.style.color = "#BBBBBB";
   	btn.style.backgroundColor = "#FFFFFF";
   	btn.style.borderTopStyle = "dotted";
   	btn.style.borderLeftStyle = "dotted";
   	btn.style.borderRightStyle = "dotted";
   	btn.style.borderTopColor = "#BBBBBB";
   	btn.style.borderLeftColor = "#BBBBBB";
   	btn.style.borderRightColor = "#BBBBBB";
}

function clicked(btn){
	var btnArr = document.getElementsByTagName("button");
	for(var i = 0 ; i<btnArr.length; i++){
		$(btnArr[i]).mouseout(goLite(btnArr[i]));
		$(btnArr[i]).mouseover(goDim(btnArr[i]));
	}
	goLite(btn);
}

*/